package com.tust.app.dao;

import com.tust.app.domain.Topic;
import java.util.List;

public interface TopicMapper {
    List<Topic> selectAllTopic();
    Topic selectTopicById(Integer id);
    void writeTopic(Topic topic);
    boolean updateTopicById(Topic topic);
    boolean deleteTopicById(Integer id);
    List<Topic> selectTopicByTitle(String title);
}